﻿<MDCard Outline="@string.IsNullOrWhiteSpace(Model.Note)" Class="@("h-100 "+Class)">
    <img src="@Model.Url" alt="@Model.Note" class="w-100">

    @if (string.IsNullOrWhiteSpace(Model.Note) == false)
    {
        <div style="display: flex; flex-direction: column; word-break: break-all; " class="ps-3 pe-3 pt-2 pb-2">

            <span>
                <CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaIcon Type="IconType.Image" />
                <a href="@Model.Url" target="_blank">
                    @Model.Note
                </a>
            </span>
        </div>
    }

</MDCard>

@code {
    [Parameter]
    public PicturesAloneViewModel Model { get; set; }
    [Parameter]
    public string Class { get; set; }

}
